/**
 * @License: (C) Copyright 2013-2022
 * @Contact: abcque@outlook.com
 * @IDE: IntelliJ IDEA
 * @Encoding: utf-8
 * @Project: st2214 2215
 * @Package: PACKAGE_NAME
 * @File: ArrayInitial.java
 * @Time: 2022/12/13 11:17
 * @Author: abcque
 * @Description: 多维数组的初始化
 * @Modifier:
 * @ModifyDate:
 * @ModifyRemark:
 */
public class ArrayInitial {
    public static void main(String[] args) {
        int[][] arr = new int[3][2];

        arr[0][0] = 1;
        arr[0][1] = 2;

        arr[1][0] = 3;
        arr[1][1] = 4;

        arr[2][0] = 5;
        arr[2][1] = 6;

        int[][] abnormal = new int[3][];
        abnormal[0] = new int[2];
        abnormal[1] = new int[3];
        abnormal[2] = new int[4];

        abnormal[0][0] = 1;
        abnormal[0][1] = 2;

        abnormal[1][0] = 3;
        abnormal[1][1] = 4;
        abnormal[1][2] = 5;

        int[][] sarr1 = new int[][]{{1,2,3},{4,5},{6,7,8,9}};
        int[][] sarr2 = {{1,2,3},{4,5},{6,7,8,9}};

    }
}
